package com.pig4cloud.pigx.contract.api.feign;

import com.pig4cloud.pigx.common.core.constant.SecurityConstants;
import com.pig4cloud.pigx.common.core.constant.ServiceNameConstants;
import com.pig4cloud.pigx.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * 抓取行情记录表Feign
 *
 * @date 2022/8/20 14:46
 */
@FeignClient(contextId = "contractMarketRecordFeign",
		value = ServiceNameConstants.WALLET_SERVICE)
public interface ContractMarketRecordFeign {

//	/**
//	 * 获取昨日8点到今日8点之前的交易记录
//	 * @return List<ContractTrade>
//	 */
//	@GetMapping("/contract-market-record/time/contract")
//	List<ContractTrade> getSettlementOrder();


	/**
	 * 获取所有 未禁用/未逻辑删除的  币种
	 * 字段需求： id，name
	 *
	 * @param from from
	 * @return R
	 */
	@GetMapping("/currency/contract/list")
	R contractList(@RequestHeader(SecurityConstants.FROM) String from);
}
